-- GENERATED SPELL FOR [Carrion Eater] --


function spell0_28022(pUnit, Event) --@Ravenous Claw,Heal--
pUnit:FullCastSpellOnTarget(54387,pUnit)
pUnit:RegisterEvent('Sorts_28022', 515, 1)
end

function Sorts_28022(pUnit, Event)
local choix_sorts_28022 = math.random(0, 0)
if choix_sorts_28022 == 0 then
pUnit:RegisterEvent('spell0_28022', 1, 1)
end
end

function mob28022_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28022', math.random(1500, 3000), 1)
end

function mob28022_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28022_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28022_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28022, 1, 'mob28022_Action')
RegisterUnitEvent(28022, 2, 'mob28022_Leave')
RegisterUnitEvent(28022, 3, 'mob28022_Kill')
RegisterUnitEvent(28022, 4, 'mob28022_Die')
